<template>
	<div class="ewjmanageloading">
		<div class="fading">
			<p>正在加载,请稍候</p>
		    <mt-spinner type="fading-circle" color="#26a2ff"></mt-spinner>
		</div>
	</div>
</template>

<script>
	export default {
		name:'ewjmanageloading',
		data () {
			return {
				
			}
		},
		created() {
			this.getInfo()
		},
		mounted() {
			
		},
		methods:{
			getInfo () {
			  this.$http.get(this.$store.state.reqUrl + '/wx/auth/authorize',{
			  	params:{
		        		mpType:'EwjManage',
		        		requestUrl:'www.ewj100.com/ewj/index.html#/shop'
		        	}
			  }).then(res => {		
			  	   this.Identification(res.data)
		        }).catch(res => {		        
		        	this.$toast(res.response.data)
		        })
			},
			 Identification (url) {
		   	   this.$http.get(url,{}).then(res => {
		   	   	   this.$router.push('/shop')
		        }).catch(res => {		        
		        	this.$toast(res.response.data)
		        })
		   }
		}
	}
</script>

<style lang="less">
   .ewjmanageloading{
   	  width:100%;
   	  .fading{
   	  	margin-top:250px;
   	  	p{
   	  		font-size: 38px;
   	  		color: green;
   	  		text-align: center;
   	  		margin-bottom: 50px;
   	  	}
   	  	.mint-spinner-fading-circle {
           width: 150px!important;
           height: 150px!important;
           margin: 0 auto;
        }
   	  }
   }
</style>